package org.altervista.cp.thinbcgen.proxy.test;

import java.io.PrintStream;

import org.altervista.cp.thinbcgen.proxy.UpdatableProxy;

public abstract class Target implements Source, UpdatableProxy {

	public abstract int unimplementedReader();

	public abstract void unimplementedWriter();

	public abstract String getName(int value);

	public Target() {
	}

	public Target(Source source, int number) {
		proxy(source);
		_number = number;
	}

	public int getNumber() {
		return _number;
	}

	public void printName(PrintStream out) throws Exception {
		out.println("My name is: " + getName(_number).toUpperCase());
	}

	private int _number;

}
